<?php


namespace app\admin\validate;

class Config extends BASE
{
    protected $rule =   [
        'id'  => 'require',
        'ids'  => 'require',
        'title'  => 'require',
        'flag'  => 'require',
        'content'   => 'require',
        'status' => 'require',
    ];

    protected $message  =   [
        'id.require' => 'id必须',
        'ids.require' => 'pid必须',
        'title.require' => '配置标题必须',
        'flag.require' => '配置标识必须',
        'content.require' => '内容必须',
        'status.require' => '状态必须',
    ];


    protected $scene = [
        'insert'  =>  ['title','status','pid'],
        'update'  =>  ['id','title','status','content','flag'],
        'detail'  =>  ['id'],
        'status'  =>  ['ids', 'status'],
        'del'  =>  ['ids'],
        'clean'  =>  ['ids'],
    ];
}